﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CampDay15__MVC_.Models;

namespace CampDay15__MVC_.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            Book myBook = new Book();
            myBook.title = "Javascript and JQuery";
            myBook.author = "Jon Duckett";
            myBook.ISBN = 2443456;

            return View(myBook);

        }
         
        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public ActionResult QuocPage()

    {
        Quoc q = new Quoc()
        {
            Name = "Quoc",
            Age = 25,
            Location = "Anchorage, AK",
            ImageUrl = "http://www.wallpaperup.com/uploads/wallpapers/2014/02/08/249789/a51cb5ec8b786aa5b95ca3a2fa6c4db0.jpg"
        };

        return View(q);
    }

        public ActionResult ShowCars()
        {
            ViewBag.Message = "Dream cars";

            Car carOne = new Car()
            {
                Make = "Ferrari",
                Model = "458",
                ImageUrl = "http://auto.ferrari.com/en_EN/wp-content/uploads/sites/5/2013/07/488-gtb-menu-news-v3-960x340.jpg"
            };

            return View(carOne);
        }
        public ActionResult ShowMan()
        {
            Person david = new Person()
            {
                Name = "David",
                Age = 19,
                Height = "5'11",
                Weight = 220
            };
            
            return View(david);

        }
    }
}